package com.lanhao.aot.itextpdf;

import com.itextpdf.text.Font;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfPCell;

public class PdfCellUtill {
	public static PdfPCell createCell(String cellValue, Font font, int horizontalAlignment, int verticalAlignment,
			int rowspan, int colspan) {
		PdfPCell pdfPCell = new PdfPCell(new Paragraph(cellValue, font));
		pdfPCell.setHorizontalAlignment(horizontalAlignment);
		pdfPCell.setVerticalAlignment(verticalAlignment);
		pdfPCell.setRowspan(rowspan);
		pdfPCell.setColspan(colspan);
		return pdfPCell;
	}
}
